<%-- 
    Document   : participantlist
    Created on : Aug 10, 2011, 3:35:07 PM
    Author     : s4201567 Tony Yu
--%>
<style type="text/css">
    #pa-list {
        padding-left: 80px;
        padding-bottom: 20px;
    }
    
    #master-title {
        text-align:center;
    }
    
   .mastertable {
    
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    width:90%;
    border:1px solid #009933;
    text-align:center;
    }
    .mastertable td, .mastertable th .mastertable tr {
    font-size:1em;    
    border:1px solid #009933;
    padding:3px 7px 2px 17px;
    }
    .mastertable th {
    font-size:1.1em;
    text-align:center;
    padding-top:5px;
    padding-bottom:4px;
    background-color:#008833;
    color:#ffffff;
    }
    
    #create {
        padding-top:20px;
    }
</style>

<script type="text/javascript">
    function addTemplate() {
        window.location="createTemp.html";
    }
</script>
<%-- 
<a href="viewList.html?tempID=<c:out value="${tempID}"/>&temp=<c:out value="${temp}"/>">View</a>
--%>
<%@ include file="../header.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<body>
    <div id="content-container1">
        <div id="content">
            
            <div id="master-title">
                <h3>Select a Template</h3>
            </div>
            <!-- Content goes here -->      
            <div id="pa-list">
              <table class="mastertable">
                <tr>
                    <th>Template ID</th>
                    <th>Template List</th>
                    <th>Details</th>
                </tr>
                <c:forEach items="${temps}" var="temp">
                    <tr>          
                        <td>${temp.getTemplateID()}</td><td>${temp.getName()}</td><td><a href='viewList.html?tempID=${temp.getTemplateID()}&temp="${temp.getName()}"'>View</a></td>
                    </tr>
                </c:forEach>
              </table>
              <div id="create">
                <input type="button" onClick="addTemplate()" value="Create a Template"/>
              </div>
            </div>
        </div>
    </div>	
</body>
		
<%@ include file="../footer.jsp" %>
